* configure.in: Bump version to 2.1.0, binary, interface age 0.
* gtk/gtkcontainer.c (gtk_container_class_list_child_properties):
(gtk_container_class_find_child_property): Document.
* gtk/gtkwidget.c:
* gtk/gtkwidget.h: New functions gtk_widget_class_list_child_properties
and gtk_widget_class_find_child_property. (#80652)
+2002-05-05 Matthias Clasen <maclas@gmx.de>
+
+ * configure.in: Bump version to 2.1.0, binary, interface age 0.
+
+ * gtk/gtkcontainer.c (gtk_container_class_list_child_properties):
+ (gtk_container_class_find_child_property): Document.
+
+ * gtk/gtkwidget.c:
+ * gtk/gtkwidget.h: New functions gtk_widget_class_list_child_properties
+ and gtk_widget_class_find_child_property. (#80652)
+
Sun May 5 15:56:50 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Fix problem with == in test argument.
+2002-05-05 Matthias Clasen <maclas@gmx.de>
+
+ * configure.in: Bump version to 2.1.0, binary, interface age 0.
+
+ * gtk/gtkcontainer.c (gtk_container_class_list_child_properties):
+ (gtk_container_class_find_child_property): Document.
+
+ * gtk/gtkwidget.c:
+ * gtk/gtkwidget.h: New functions gtk_widget_class_list_child_properties
+ and gtk_widget_class_find_child_property. (#80652)
+
Sun May 5 15:56:50 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Fix problem with == in test argument.
+2002-05-05 Matthias Clasen <maclas@gmx.de>
+
+ * configure.in: Bump version to 2.1.0, binary, interface age 0.
+
+ * gtk/gtkcontainer.c (gtk_container_class_list_child_properties):
+ (gtk_container_class_find_child_property): Document.
+
+ * gtk/gtkwidget.c:
+ * gtk/gtkwidget.h: New functions gtk_widget_class_list_child_properties
+ and gtk_widget_class_find_child_property. (#80652)
+
Sun May 5 15:56:50 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Fix problem with == in test argument.
+2002-05-05 Matthias Clasen <maclas@gmx.de>
+
+ * configure.in: Bump version to 2.1.0, binary, interface age 0.
+
+ * gtk/gtkcontainer.c (gtk_container_class_list_child_properties):
+ (gtk_container_class_find_child_property): Document.
+
+ * gtk/gtkwidget.c:
+ * gtk/gtkwidget.h: New functions gtk_widget_class_list_child_properties
+ and gtk_widget_class_find_child_property. (#80652)
+
Sun May 5 15:56:50 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Fix problem with == in test argument.
+2002-05-05 Matthias Clasen <maclas@gmx.de>
+
+ * configure.in: Bump version to 2.1.0, binary, interface age 0.
+
+ * gtk/gtkcontainer.c (gtk_container_class_list_child_properties):
+ (gtk_container_class_find_child_property): Document.
+
+ * gtk/gtkwidget.c:
+ * gtk/gtkwidget.h: New functions gtk_widget_class_list_child_properties
+ and gtk_widget_class_find_child_property. (#80652)
+
Sun May 5 15:56:50 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Fix problem with == in test argument.
+2002-05-05 Matthias Clasen <maclas@gmx.de>
+
+ * configure.in: Bump version to 2.1.0, binary, interface age 0.
+
+ * gtk/gtkcontainer.c (gtk_container_class_list_child_properties):
+ (gtk_container_class_find_child_property): Document.
+
+ * gtk/gtkwidget.c:
+ * gtk/gtkwidget.h: New functions gtk_widget_class_list_child_properties
+ and gtk_widget_class_find_child_property. (#80652)
+
Sun May 5 15:56:50 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Fix problem with == in test argument.
# set GTK_BINARY_AGE and GTK_INTERFACE_AGE to 0.
#
GTK_MAJOR_VERSION=2
-GTK_MINOR_VERSION=0
-GTK_MICRO_VERSION=2
-GTK_INTERFACE_AGE=2
-GTK_BINARY_AGE=2
+GTK_MINOR_VERSION=1
+GTK_MICRO_VERSION=0
+GTK_INTERFACE_AGE=0
+GTK_BINARY_AGE=0
GTK_VERSION=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION.$GTK_MICRO_VERSION
dnl This is the X.Y used in -lgtk-FOO-X.Y
GTK_API_VERSION=2.0
dnl out so that people don't accidentally build without them.
AC_ARG_WITH(libpng, [ --without-libpng disable PNG loader for gdk-pixbuf])
+AC_ARG_WITH(libmng, [ --without-libmng disable MNG loader for gdk-pixbuf])
AC_ARG_WITH(libjpeg, [ --without-libjpeg disable JPEG loader for gdk-pixbuf])
AC_ARG_WITH(libtiff, [ --without-libtiff disable TIFF loader for gdk-pixbuf])
*** from CVS.])
fi
+dnl Test for libmng
+ if test x$with_libmng != xno && test -z "$LIBMNG"; then
+ AC_CHECK_LIB(mng, mng_initialize,
+ [AC_CHECK_HEADER(libmng.h,
+ mng_ok=yes,
+ mng_ok=no)],
+ AC_MSG_WARN(*** MNG loader will not be built (MNG library not found) ***), -lz -lm)
+ AC_MSG_RESULT($mng_ok)
+ if test "$mng_ok" = yes; then
+ MNG='mng'; LIBMNG='-lmng -lz'
+ else
+ AC_MSG_WARN(*** MNG loader will not be built (MNG header file not found) ***)
+ fi
+ fi
+
AC_SUBST(LIBTIFF)
AC_SUBST(LIBJPEG)
AC_SUBST(LIBPNG)
+AC_SUBST(LIBMNG)
AM_CONDITIONAL(BUILD_DYNAMIC_MODULES, $dynworks)
fi
fi
-all_loaders="png,bmp,wbmp,gif,ico,jpeg,pnm,ras,tiff,xpm,tga"
+all_loaders="png,mng,bmp,wbmp,gif,ico,jpeg,pnm,ras,tiff,xpm,tga"
included_loaders=""
# If no loaders specified, include all
if test "x$with_included_loaders" = xyes ; then
AM_CONDITIONAL(HAVE_TIFF, test "x$LIBTIFF" != x)
AM_CONDITIONAL(HAVE_PNG, test "x$LIBPNG" != x)
+AM_CONDITIONAL(HAVE_MNG, test "x$LIBMNG" != x)
AM_CONDITIONAL(HAVE_JPEG, test "x$LIBJPEG" != x)
if $dynworks ; then
if echo "$included_loaders" | grep "\(^\|\,\)png\(\$\|\,\)" > /dev/null; then
STATIC_LIB_DEPS="$STATIC_LIB_DEPS $LIBPNG"
fi
+ if echo "$included_loaders" | grep "\(^\|\,\)mng\(\$\|\,\)" > /dev/null; then
+ STATIC_LIB_DEPS="$STATIC_LIB_DEPS $LIBMNG"
+ fi
else
- STATIC_LIB_DEPS="$LIBTIFF $LIBJPEG $LIBPNG"
+ STATIC_LIB_DEPS="$LIBTIFF $LIBJPEG $LIBPNG $LIBMNG"
fi
# Checks to see if we should compile in MMX support (there will be
+2002-05-05 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtk-sections.txt: Add gtk_widget_class_find_style_property,
+ gtk_widget_class_list_style_properties and gtk_style_get_font_for_display.
+
2002-05-03 Matthias Clasen <maclas@gmx.de>
* gdk/gdk-sections.txt: Remove gdk_screen_use_virtual_screen.
gtk_widget_mnemonic_activate
gtk_widget_class_install_style_property
gtk_widget_class_install_style_property_parser
+gtk_widget_class_find_style_property
+gtk_widget_class_list_style_properties
gtk_widget_region_intersect
gtk_widget_send_expose
gtk_widget_style_get
gtk_style_lookup_icon_set
gtk_style_render_icon
gtk_style_get_font
+gtk_style_get_font_for_display
gtk_style_set_font
gtk_draw_hline
gtk_draw_vline
g_param_spec_pool_insert (_gtk_widget_child_property_pool, pspec, G_OBJECT_CLASS_TYPE (class));
}
+/**
+ * gtk_container_class_find_child_property:
+ * @class: a #GtkContainerClass
+ * @property_name: the name of the child property to find
+ * @returns: the #GParamSpec of the child property or %NULL if @class has ho
+ * child property with that name.
+ *
+ * Finds a child property of a container class by name.
+ */
GParamSpec*
gtk_container_class_find_child_property (GObjectClass *class,
const gchar *property_name)
TRUE);
}
-GParamSpec** /* free result */
+/**
+ * gtk_container_class_list_child_properties:
+ * @class: a #GtkContainerClass
+ * @n_properties: location to return the number of child properties found
+ * @returns: an newly allocated array of #GParamSpec*. The array must be freed with g_free().
+ *
+ * Returns all child properties of a container class.
+ */
+GParamSpec**
gtk_container_class_list_child_properties (GObjectClass *class,
guint *n_properties)
{
g_object_class_install_property (gobject_class,
PROP_PARENT,
g_param_spec_object ("parent",
- _("Parent widget"),
+ _("Parent widget"),
_("The parent widget of this widget. Must be a Container widget."),
GTK_TYPE_CONTAINER,
G_PARAM_READWRITE));
gtk_widget_class_install_style_property_parser (class, pspec, parser);
}
+/**
+ * gtk_widget_class_find_style_property:
+ * @class: a #GtkWidgetClass
+ * @property_name: the name of the style property to find
+ * @returns: the #GParamSpec of the style property or %NULL if @class has ho
+ * style property with that name.
+ *
+ * Finds a style property of a widget class by name.
+ */
+GParamSpec*
+gtk_widget_class_find_style_property (GtkWidgetClass *class,
+ const gchar *property_name)
+{
+ g_return_val_if_fail (property_name != NULL, NULL);
+
+ return g_param_spec_pool_lookup (style_property_spec_pool,
+ property_name,
+ G_OBJECT_CLASS_TYPE (class),
+ TRUE);
+}
+
+/**
+ * gtk_widget_class_list_style_properties:
+ * @class: a #GtkWidgetClass
+ * @n_properties: location to return the number of style properties found
+ * @returns: an newly allocated array of #GParamSpec*. The array must be freed with g_free().
+ *
+ * Returns all style properties of a widget class.
+ */
+GParamSpec**
+gtk_widget_class_list_style_properties (GtkWidgetClass *class,
+ guint *n_properties)
+{
+ GParamSpec **pspecs;
+ guint n;
+
+ pspecs = g_param_spec_pool_list (style_property_spec_pool,
+ G_OBJECT_CLASS_TYPE (class),
+ &n);
+ if (n_properties)
+ *n_properties = n;
+
+ return pspecs;
+}
+
/**
* gtk_widget_style_get_property:
* @widget: a #GtkWidget
void gtk_widget_class_install_style_property_parser (GtkWidgetClass *klass,
GParamSpec *pspec,
GtkRcPropertyParser parser);
+GParamSpec* gtk_widget_class_find_style_property (GtkWidgetClass *klass,
+ const gchar *property_name);
+GParamSpec** gtk_widget_class_list_style_properties (GtkWidgetClass *klass,
+ guint *n_properties);
void gtk_widget_style_get_property (GtkWidget *widget,
const gchar *property_name,
GValue *value);